<?php

namespace app\admin\validate;

use think\Validate;
use app\common\Error;

class Stills extends Validate
{
    protected $rule = [
        'id' => 'require',
        'cover' => 'require',
        'sort' => 'require',
    ];

    protected $message = [
        'id.require' => Error::ID_NOT_EXIXTS,
        'cover.require' => Error::COVER_NOT_EXIXTS,
        'sort.require' => Error::SORT_NOT_EXIXTS,
    ];

    protected $scene = [
        'add' => ['cover', 'sort'],
        'edit' => ['id', 'cover', 'sort'],
        'delete' => ['id'],
        'detail' => ['id'],
    ];
}
